<template>
  <div class="app-main-container u-light-theme">
    <router-view></router-view>
  </div>
</template>
<script lang="ts" setup>
import {
  NAV_MENU_KEY,
  ROLE_MENU_KEY,
  TOKEN_SESSION_KEY,
} from "./config/tokenConstant";
import { RoleMenuVO } from "./pojo/RoleMenuVO";
import { useStore } from "./store";

/***
 * APP-INITIAL
 */
const store = useStore();

const navMenusStr: string = window.localStorage.getItem(NAV_MENU_KEY) || "";
console.log("处理导航菜单");
let navMenus: RoleMenuVO[] = [];
try {
  navMenus = JSON.parse(navMenusStr);
} catch (ex) {}

store.commit("setShownNavMenus", navMenus);


</script>
